package cn.javase.base.reflect;

public class Student {

    private String name;
    private int age;
    public String gender;

    public Student() {}
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    protected Student(int age) {
        this.age = age;
    }
    private Student(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return this.age;
    }
    public void setAge(int age) {
        this.age = age;
    }

    void sayHello() {
        System.out.println("学生说你好！");
    }

    private String sayHello(String str) throws RuntimeException {
        System.out.println("你好你好！");
        return str;
    }

}
